import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');

@Define.Table({ TableName: "setting" })
export class Setting extends EntityObjectType<Setting>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.BIGINT
    })
    lastSyncTime: number;

    @Define.Column({
        DataType: Define.DataType.BIGINT
    })
    lastDutyTime: number;
}